package com.feihong.txgw.adapter.user;

import android.widget.ImageView;

import com.adapter.base.BaseQuickAdapter;
import com.adapter.base.BaseViewHolder;
import com.bumptech.glide.Glide;
import com.feihong.txgw.R;
import com.feihong.txgw.model.bean.invitefriend.InviteFriendsEntity;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName InviteFriendsReAdapter
 * @package com.feihong.txgw.adapter.user
 * @data 2018/6/5 18:11
 * @Describe
 * @Change
 */
public class InviteFriendsReAdapter extends BaseQuickAdapter<InviteFriendsEntity,BaseViewHolder> {
    public InviteFriendsReAdapter(int layoutResId) {
        super(layoutResId);
        setEnableLoadMore(false);
        openLoadAnimation();
        isFirstOnly(false);
    }

    @Override
    protected void convert(BaseViewHolder helper, InviteFriendsEntity item) {

        helper.setText(R.id.invite_friends_friendsName,item.getPhone_num());
        helper.setText(R.id.invite_friends_inviteTime,item.getAdd_time());
        Glide.with(mContext).load(item.getImg_head()).into((ImageView) helper.getView(R.id.invite_friends_friendsIcon));
    }
}
